package org.as3search.config {
	/*
	 * as3search - http://code.google.com/p/as3search
	 * Copyright (c) 2009-2010 by respective authors. All rights reserved.
	 *
	 * This library is free software; you can redistribute it and/or modify it under the
	 * terms of the GNU Lesser General Public License as published by the Free Software
	 * Foundation; either version 2.1 of the License, or (at your option) any later
	 * version.
	 *
	 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
	 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
	 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
	 *
	 * You should have received a copy of the GNU Lesser General Public License along
	 * with this library; if not, write to the Free Software Foundation, Inc.,
	 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
	 */	
	
	import org.as3search.providers.ArraySearchProvider;
	import org.as3search.providers.ObjectSearchProvider;
	import org.as3search.providers.impl.SearchProviderMappingImpl;

	/**
	 * <code>LightSearchConfiguration</code> is a search configuration that provides
	 * only support for built-in collection types, aka <code>Array</code>. It also 
	 * provides <code>ObjectSearchProvider</code> as a <code>failoverProvider</code>.
	 * 
	 * @see org.as3search.config.AbstractSearchConfiguration
	 * @see org.as3search.config.SearchConfiguration
	 * @see org.as3search.providers.ArraySearchProvider
	 * @see org.as3search.providers.ObjectSearchProvider
	 */
	public class LightSearchConfiguration extends AbstractSearchConfiguration {
		/**
		 * Creates a new <code>LightSearchConfiguration</code> instance.
		 */
		public function LightSearchConfiguration() {
			this.failoverProvider = new SearchProviderMappingImpl(Object, ObjectSearchProvider);
			this.addSearchProvider(Array, ArraySearchProvider);
		}
	}
}